package com.vf.admin.utils;


/**
 * <p>Title : 根据地区返回人数</p>
 * <p>Description : </p>
 * <p>DevelopTools : IDEA</p>
 * <p>DevelopSystem : Windows10</p>
 *
 * @Author : NemoMeng
 * @Date 2023/7/15 9:09
 */
public class FuJinRenSelectUtil {


    public static Integer getRenNum(String address) {
        Integer num = 5;
        //上海、北京、广州、深圳
        if (address.contains("上海") || address.contains("北京") || address.contains("广州") || address.contains("深圳")) {
            //50
            return num = 50;
        }
        //村
        if (address.contains("村")) {
            //5
            return num = 5;
        }
        //乡  镇
        if (address.contains("乡") || address.contains("镇")) {
            //10
            return num = 10;
        }
        //县
        if (address.contains("县")) {
            //20
            return num = 20;
        }
        // 市 区
        if (address.contains("市") || address.contains("区")) {
            //30
            return num = 30;
        }
        return num;

    }
}
